package hn.cch.thymeleaf.config;

import org.neo4j.ogm.session.SessionFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.config.Neo4jConfiguration;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author CCH
 * @version 2018.07.10
 */

@Configuration
@EnableTransactionManagement
@EnableNeo4jRepositories(basePackages = {"hn.cch.thymeleaf.repository"})
public class Neo4jConfig extends Neo4jConfiguration {

    @Override
    public SessionFactory getSessionFactory() {
        return new SessionFactory("hn.cch.thymeleaf.entity");
    }
}
